88ebd2bf55bdb742077bf2328ce611aff77f7ec6,yamcs-core/src/main/java/org/yamcs/web/rest/Router.java,Router,handleException,#RestRequest#Throwable#,273
Before Change
private void handleException(RestRequest req, Throwable t) {
if(t instanceof InternalServerErrorException) {
InternalServerErrorException e = (InternalServerErrorException)t;
log.error("R{}: Reporting internal server error to client", req.getRequestId(), e);
RestHandler.sendRestError(req, e.getStatus(), e);
} else if (t instanceof HttpException) {
HttpException e = (HttpException)t;
After Change
private void handleException(RestRequest req, Throwable t) {
if (t instanceof InternalServerErrorException) {
InternalServerErrorException e = (InternalServerErrorException) t;
log.error(String.format("R%d: Reporting internal server error to client", req.getRequestId()), e);
RestHandler.sendRestError(req, e.getStatus(), e);
} else if (t instanceof HttpException) {
HttpException e = (HttpException)t;